package com.hb.trans.mvp.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.hb.trans.R
import com.hb.trans.bean.TitleItem
import javax.inject.Inject

class AreaItemAdapter(layoutResId: Int) : BaseQuickAdapter<TitleItem, BaseViewHolder>(layoutResId) {
    @Inject
    constructor() : this(R.layout.item_area)

    override fun convert(holder: BaseViewHolder, item: TitleItem) {
        item.let {

//            var s = it.photourl
//            if (s != "") {
//                MyGlideModule.load(mContext, it.photourl, holder.getView(R.id.teacher_head))
//
//            }
            holder.setText(R.id.item_title, it.title)
        }
    }


}